import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import cesium from "vite-plugin-cesium"

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(),cesium()],
  server: {
    cors: true, //跨域启用任何源
    open: true,
    host: "127.0.0.1",
    port: 9527,
    // proxy: {
    //   '/api': {
    //     target: 'http://192.168.1.156:3000',   //代理接口
    //     changeOrigin: true,
    //     rewrite: (path) => path.replace(/^\/api/, '')
    //   }
    // }
  }
})
